#ifndef _NoticeLayer_H_
#define _NoticeLayer_H_
#include "cocos2d.h"
#include "cocos/ui/CocosGUI.h"
#include "extensions/cocos-ext.h"
#include "ui/UIWebView.h"

USING_NS_CC;
using namespace ui;
USING_NS_CC_EXT;

class NoticeLayer :  public LayerColor
{
private:
	Widget*	      m_widgetUI;
	Button*		  server_close;
	Layout*       m_panel;
#if (CC_TARGET_PLATFORM == CC_PLATFORM_ANDROID) || (CC_TARGET_PLATFORM == CC_PLATFORM_IOS)
	experimental::ui::WebView* m_WebNode;
#endif
public:
	NoticeLayer(void);
	~NoticeLayer(void);

	virtual bool init(float fScale);
	static NoticeLayer *create(float fScale);
	void SetBtnCallBack(cocos2d::Ref* target,cocos2d::ui::SEL_TouchEvent selector);

	void DestroyWebView();
	void OnButtonClickEvent(cocos2d::Ref* sender,cocos2d::ui::TouchEventType type);
};

#endif // !_NoticeLayer_H_
